<template>
    <div class="mid-ads">
        <span>南山区冷冻箱核酸检测累计异常{{warnNum}}个，新增异常{{errNum}}个</span>
    </div>
</template>
<script>
import { defineComponent, reactive, toRefs } from 'vue'

export default defineComponent({
    name:"MidMenu",
    setup() {
        const state = reactive({
            warnNum:0,
            errNum:0
        })
        return{
            ...toRefs(state)
        }
    },
})
</script>
<style>
.mid-ads{
    position: absolute;
    top:-45px;
    width: 635px;
    left:50%;
    transform: translateX(-50%);
    height: 45px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 49%, rgba(0, 0, 0, 0) 100%);
    text-align: center;
}
.mid-ads span{
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
    display: inline-block;
    text-align: center;
}
</style>